<!doctype html>
<html class="no-js fixed-layout">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>泛兰士后台管理</title>
    <meta name="description" content="这是一个index页面">
    <meta name="keywords" content="index">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <meta name="csrf-token" content="{{ csrf_token() }}">
    <link rel="icon" type="image/png" href="/backend/amazeui/assets/i/favicon.png">
    <link rel="apple-touch-icon-precomposed" href="/backend/amazeui/assets/i/app-icon72x72@2x.png">
    <meta name="apple-mobile-web-app-title" content="Amaze UI"/>
    <link rel="stylesheet" href="/backend/amazeui/assets/css/amazeui.min.css"/>
    <link rel="stylesheet" href="/backend/amazeui/assets/css/admin.css">
    <link rel="stylesheet" href="/css/common.css">
    <script src="/backend/amazeui/assets/js/jquery.min.js"></script>
    @yield('css')
</head>
<body>
<!--[if lte IE 9]>
<p class="browsehappy">你正在使用<strong>过时</strong>的浏览器，Amaze UI 暂不支持。 请 <a href="http://browsehappy.com/" target="_blank">升级浏览器</a>
    以获得更好的体验！</p>
<![endif]-->

<header class="am-topbar am-topbar-inverse admin-header">
    <div class="am-topbar-brand">
        <strong>泛兰士</strong>
        <small>后台管理</small>
    </div>

    <button class="am-topbar-btn am-topbar-toggle am-btn am-btn-sm am-btn-success am-show-sm-only"
            data-am-collapse="{target: '#topbar-collapse'}"><span class="am-sr-only">导航切换</span> <span
                class="am-icon-bars"></span></button>

    <div class="am-collapse am-topbar-collapse" id="topbar-collapse">

        <ul class="am-nav am-nav-pills am-topbar-nav am-topbar-right admin-header-list">
            <li><a href="{{url('/admin/index')}}"><span class="am-icon-home"></span> 首页 </a></li>
            {{--<li><a href="javascript:;"><span class="am-icon-envelope-o"></span> 收件箱 <span--}}
                            {{--class="am-badge am-badge-warning">5</span></a></li>--}}
            <li class="am-dropdown" data-am-dropdown>
                <a class="am-dropdown-toggle" data-am-dropdown-toggle href="javascript:;">
                    <span class="am-icon-users"></span> {{ucfirst(Auth::user()->name)}} <span
                            class="am-icon-caret-down"></span>
                </a>
                <ul class="am-dropdown-content">
                    <li><a href="#"><span class="am-icon-user"></span> 资料</a></li>
                    <li><a href="{{route('auth.clear_cache')}}"><span class="am-icon-cog"></span> 清除缓存</a></li>
                    <li>
                        <a href="{{ url('/admin/logout') }}"
                           onclick="event.preventDefault(); document.getElementById('logout-form').submit();">
                            <span class="am-icon-power-off"></span> 退出
                        </a>
                        <form id="logout-form" action="{{ url('/admin/logout') }}" method="POST" style="display: none;">
                            {{ csrf_field() }}
                        </form>
                </ul>
            </li>
            <li class="am-hide-sm-only"><a href="javascript:;" id="admin-fullscreen"><span
                            class="am-icon-arrows-alt"></span> <span class="admin-fullText">开启全屏</span></a></li>
        </ul>
    </div>
</header>

<div class="am-cf admin-main">
    <!-- sidebar start -->
           @include('layouts.admin._sidebar')
    <!-- sidebar end -->

    <!-- content start -->
    <div class="admin-content">
            @yield('content')
        <footer class="admin-content-footer">
            <hr>
            <p class="am-padding-left">© 2018 武汉泛兰士信息科技有限公司</p>
        </footer>
    </div>
    <!-- content end -->
</div>

<a href="#" class="am-icon-btn am-icon-th-list am-show-sm-only admin-menu"
   data-am-offcanvas="{target: '#admin-offcanvas'}"></a>

<!--[if lt IE 9]>
<!--<script src="http://libs.baidu.com/jquery/1.11.1/jquery.min.js"></script>
<script src="http://cdn.staticfile.org/modernizr/2.8.3/modernizr.js"></script>-->
<script src="/backend/amazeui/assets/js/amazeui.ie8polyfill.min.js"></script>
<![endif]-->
<!--[if (gte IE 9)|!(IE)]><!-->
<!--<![endif]-->
<script src="/backend/amazeui/assets/js/amazeui.min.js"></script>
<script src="/backend/amazeui/assets/js/app.js"></script>
<script src="/backend/tools/destroy.js"></script>
<script src="/backend/tools/common.js"></script>
@yield('js')
</body>
</html>
